//
//  QADetailHeaderView.m
//  BaseProject
//
//  Created by 王洋 on 2020/12/11.
//  Copyright © 2020 王洋. All rights reserved.
//

#import "QADetailHeaderView.h"

@implementation QADetailHeaderView

+ (CGFloat)calculateHeightWithModel:(CommonQAModel *)model {
    
    return 70 +  [Utilities getStringHeightWithText:model.content font:[UIFont systemFontOfSize:15] viewWidth:(TTScreenWidth - 28)];
}

- (void)fillWithModel:(CommonQAModel *)model {
    
    self.mainTitleLab.text = model.title;
    self.subTitleLab.text = model.content;    
}

@end
